rem adam 
rem this script will only run on a windows operating system
rem note the "rem " is actually a commenting style used in bat or cmd files.  anything preceded with it will not be run
rem the "start" proceeding the asadmin command force the command to be run in its own process. to run the command on 
rem other platforms get rid of "start"
rem 
rem we need to place this file in the directory where glassfish is: ..\glassfish-3.1.2\glassfish\bin
rem double click to run it to run the below commands
rem 
rem create connection pool
start asadmin create-jms-resource --restype javax.jms.ConnectionFactory jms/trefliq/ConnectionFactory

rem for all queues follow this format:
rem start asadmin create-jms-resource --restype javax.jms.Queue jms/trefliq/QueueSomethingMeaningful
start asadmin create-jms-resource --restype javax.jms.Queue jms/trefliq/QueueAccountApproved
start asadmin create-jms-resource --restype javax.jms.Queue jms/trefliq/MovieReportQueue

rem for all Topics follow this format:
rem start asadmin create-jms-resource --restype javax.jms.Topic jms/trefliq/TopicSomethingMeaningful
start asadmin create-jms-resource --restype javax.jms.Topic jms/trefliq/TopicNewMovieIn